package com.anyou.use.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.anyou.common.annotation.Excel;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 用户信息对象 use_user
 * 
 * @author gaochaohao
 * @date 2022-03-08
 */
public class UseUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 登录密码 */
    private String loginPassword;

    /** 加密盐 */
    private String salt;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 头像 */
    private String avatarUrl;

    /** 接口密钥 */
    private String apiKey;

    /** 账号状态（0=正常，1=禁止） */
    @Excel(name = "账号状态", readConverterExp = "0==正常，1=禁止")
    private String accountStatus;

    /** 账户令牌 */
    private String accountToken;

    /** 微信小程序openid */
    private String wxAppletOpenId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    private String aaa;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setLoginPassword(String loginPassword) 
    {
        this.loginPassword = loginPassword;
    }

    public String getLoginPassword() 
    {
        return loginPassword;
    }
    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setApiKey(String apiKey) 
    {
        this.apiKey = apiKey;
    }

    public String getApiKey() 
    {
        return apiKey;
    }
    public void setAccountStatus(String accountStatus) 
    {
        this.accountStatus = accountStatus;
    }

    public String getAccountStatus() 
    {
        return accountStatus;
    }
    public void setAccountToken(String accountToken) 
    {
        this.accountToken = accountToken;
    }

    public String getAccountToken() 
    {
        return accountToken;
    }
    public void setWxAppletOpenId(String wxAppletOpenId) 
    {
        this.wxAppletOpenId = wxAppletOpenId;
    }

    public String getWxAppletOpenId() 
    {
        return wxAppletOpenId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("phoneNumber", getPhoneNumber())
            .append("loginPassword", getLoginPassword())
            .append("salt", getSalt())
            .append("nickName", getNickName())
            .append("avatarUrl", getAvatarUrl())
            .append("apiKey", getApiKey())
            .append("accountStatus", getAccountStatus())
            .append("accountToken", getAccountToken())
            .append("wxAppletOpenId", getWxAppletOpenId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
